package ar.com.vates.manejoExcepciones;

public class MiClase {
	private int num = (int)(Math.random()*2);
	
	public void lanzar(){
		String aux = String.valueOf(num);
		if(num ==0 ){
			try {
				throw new MiEcxepcion();
			} catch (Exception e) { 
				System.out.println(e.toString()) ;
				return;
			}
		}
		System.out.println(aux);
	}
}
